package io.renren.modules.app.service.impl;

import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.app.dao.ScriptDetailsDao;
import io.renren.modules.app.entity.ScriptDetailsEntity;
import io.renren.modules.app.service.ScriptDetailsService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


@Service("scriptDetailsService")
public class ScriptDetailsServiceImpl extends ServiceImpl<ScriptDetailsDao, ScriptDetailsEntity> implements ScriptDetailsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ScriptDetailsEntity> page = this.page(
                new Query<ScriptDetailsEntity>().getPage(params),
                new QueryWrapper<ScriptDetailsEntity>()
        );

        return new PageUtils(page);
    }

}